import axios from '../utils/axios'

export function getUserInfo () {
  return axios.get('/user/info/')
}

export function EditUserInfo (params) {
  return axios.put('/user/modify/', params)
}

export function login (params) {
  return axios.post('/user/login/', params)
}

export function logout () {
  return axios.post('/user/logout/')
}

export function register (params) {
  return axios.post('/user/register/', params)
}
